package com.zby.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum BlockEnum implements BaseEnum {
    H1(1, "h1"),
    H2(2, "h2"),
    PARAGRAPH(3, "paragraph"),
    CODE(4, "code"),
    IMAGE(5, "image"),
    LINK(6, "link"),
    BLOCKQUOTE(7, "blockquote"),
    OL(8, "ol"),
    UL(9, "ul"),
    TABLE(10, "table"),
    HR(11, "hr"),
    HTML(12, "html"),
    MATH(13, "math"),
    TODO(14, "todo"),
    UNKNOWN(15, "unknown");

    @EnumValue
    private final Integer code;

    @JsonValue
    private final String name;
}
